package com.ajk.server;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import com.ajk.server.config.UserProfile;

public class ServletInitializer  extends SpringBootServletInitializer{

	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {

		if (System.getProperty("spring.profiles.active") == null) {
			System.setProperty("spring.profiles.active", UserProfile.PROD);
		}
		return application.sources(AjkAplication.class);
	}
}
